home *** CD-ROM | disk | FTP | other *** search
/ Nebula 2 / Nebula Two.iso / NextAnswers / 1370_uucico_crash_after_polling.rtf < prev    next >
Text File  |  1993-11-08  |  3KB  |  92 lines

  1. {\rtf0\ansi{\fonttbl\f0\fnil Times-Roman;\f1\fmodern Courier;\f2\fmodern Ohlfs;}
  2. \paperw10460
  3. \paperh8200
  4. \margl120
  5. \margr700
  6. {\colortbl;\red0\green0\blue0;\red84\green84\blue84;\red83\green83\blue83;\red82\green82\blue82;\red81\green81\blue81;}
  7. \pard\tx960\tx1920\tx2880\tx3840\tx4800\tx5760\tx6720\tx7680\tx8640\tx9600\f0\b0\i0\ulnone\fs28\fc0\cf0 Q: 
  8. \f1\fs24 uucico
  9. \f0\fs28  is being uncooperative.  Specifically, if someone polls my machine, my machine hangs up the phone (the other side typically sees this after the second\
  10. \
  11.  
  12. \f1\fs24\fc1\cf1     imsg looking for SYNC<\
  13.  
  14. \f0\fs28\fc0\cf0 \
  15. message in the debug output).  When I poll that same machine, 
  16. \f1\fs24 uucico
  17. \f0\fs28  provides a core dump, after a segmentation fault.  What's stranger still is that polling 
  18. \i some
  19. \i0  machines works fine, and those machines can poll mine!\
  20. \
  21. Q: 
  22. \f1\fs24 uucico
  23. \f0\fs28  is crashing when it tries to transfer files other than mail.  Mail comes through fine, but a file transfer won't.  What's wrong?\
  24. \
  25. A: The likely problem is that you have improperly formatted UUCP configuration files.  For example, blank lines in your 
  26. \f1\fs24 L.sys
  27. \f0\fs28  file can cause the first symptom, and malformed lines in your 
  28. \f1\fs24 USERFILE
  29. \f0\fs28  can cause the second..  The UUCP system can't handle these.\
  30. \
  31. In the case of the blank 
  32. \f1\fs24 L.sys
  33. \f0\fs28  line, if the line is entirely empty—no spaces, no tabs, just empty—uucico works fine.  However, if the line contains only whitespace—spaces and tabs—then uucico crashes.  Remove the blank lines, or, if you like white space in your
  34. \f1\fs24  L.sys 
  35. \f0\fs28 file, replace the blank lines with otherwise-empty comment lines.\
  36. \
  37. In addition, if expected fields are missing, uucico has been known to crash.  For example, the following 
  38. \f1\fs24 L.sys
  39. \f0\fs28  entry will crash uucico:\
  40. \
  41.  
  42. \f1\fs24\fc1\cf1     … \\\
  43.     "" ATdt555-1212 \\\
  44.     ogin:~20- -ogin:- -ogin: name \\\
  45.     ssword: YouKnowWhat\
  46.  
  47. \f0\fs28 \
  48. What was 
  49. \i desired
  50. \i0  in this case was to send a newline if the prompt 
  51. \b ogin:
  52. \b0  was not received.  What happened instead is that uucico was looking for the next 
  53. \i expect
  54. \i0  string in the 
  55. \i expect-send
  56. \i0  sequence, and it wasn't there.  To accomplish this, use the following instead:\
  57. \
  58.  
  59. \f1\fs24     … \\\
  60.     "" ATdt555-1212 \\\
  61.     ogin:~20-CR-ogin:-CR-ogin: name \\\
  62.     ssword: YouKnowWhat\
  63.  
  64. \f0\fs28 \
  65. In the case of a malformed USERFILE, check for lines with a missing space.  The format of USERFILE is\
  66. \
  67.  
  68. \f1\fs24     [user],[system] directory\
  69.  
  70. \f0\fs28 \
  71. You 
  72. \i must
  73. \i0  have the space between the 
  74. \f1\fs24 user,system
  75. \f0\fs28  and the directory.  (Yes, 
  76. \f1\fs24 user
  77. \f0\fs28  and 
  78. \f1\fs24 system
  79. \f0\fs28  are both optional.  The comma between them and the space following them are not.)\
  80. \
  81. One other thing which can cause uucico to fail (silently on the remote, with a bus error locally) is if the program—which runs SetUID uucp and SetGID daemon—does not have appropriate access to the UUCP spool directory, 
  82. \f1\fs24 /usr/spool/uucp
  83. \f0\fs28 .  Ensure that the user 
  84. \b uucp
  85. \b0  can read, write, and search (“execute”) the spool directory.  Recommended permissions are 755 (read, write, execute for the user; read, execute for the group; read, execute for others).\
  86. \
  87. QA508\
  88. \
  89. Valid for 1.0, 2.0, 3.0, 3.1\
  90. \
  91.  
  92.